package com.example.order.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "weather-client", url = "https://v2.alapi.cn/")
public interface WeatherFeignClient {

    @PostMapping("/api/tianqi/now")
    String getWeather(@RequestParam("token") String token);
}
